package com.kehutong.payment.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.annotation.UnSave;
import org.coraframework.orm.util.IDType;

import java.sql.Timestamp;
import java.util.List;

/**
 * <pre>企业商户设置</pre>
 */
@Table(value="t_auth_merchant_corp", comment="企业商户设置", idType = IDType.TIMESTAMP)
public class MerchantSettingCorp extends Entity {

	private static final long serialVersionUID = -1588889145884303243L;

	protected MerchantSettingCorp(String id) {
		super(id);
	}

	@Column(comment="企业编号")
	private String companyNo;

	@Column(length=64, comment="企业名称")
	private String companyName;

	@Column(comment="项目编号，如果为1，表示全部小区")
	private String communityNo;

	@Column(length=64, comment="项目名称")
	private String communityName;

	@Column(comment = "服务商ID")
	private String merchantSettingId;

	@Column(comment="商户模式，true 普通商户，false 服务商模式")
	private boolean mchModel;

	@Column(comment = "商户Id")
	private String mchId;
	
	@Column(length=64, comment = "商户名称")
	private String mchName;
	
	@Column(length = 64, comment = "商户密约")
	private String mchSecret;

	@Column(length = 64, comment = "商户appId")
	private String appId;

	@Column(comment = "支付文件")
	private String mchFileId;

	@Column(comment = "支付证书apiclient_cert.pem")
	private String certPemFileId;

	@Column(comment = "支付证书apiclient_key.pem")
	private String keyPemFileId;

	@Column(comment = "审核状态")
	private boolean auditStatus;

	@Column(comment="逻辑删除")
	private boolean deleted;

	@Column(comment = "创建人")
	private String createName;

	@Column(comment = "修改人")
	private String updateName;

	@Column(comment = "排序")
	private Integer sort;

	@Column(comment = "审核时间")
	private Timestamp auditTime;

	@UnSave
	private List<String> communityIds;

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

	public String getUpdateName() {
		return updateName;
	}

	public void setUpdateName(String updateName) {
		this.updateName = updateName;
	}

	public Timestamp getAuditTime() {
		return auditTime;
	}

	public void setAuditTime(Timestamp auditTime) {
		this.auditTime = auditTime;
	}

	public String getCompanyNo() {
		return companyNo;
	}

	public void setCompanyNo(String companyNo) {
		this.companyNo = companyNo;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getCommunityNo() {
		return communityNo;
	}

	public void setCommunityNo(String communityNo) {
		this.communityNo = communityNo;
	}

	public String getCommunityName() {
		return communityName;
	}

	public void setCommunityName(String communityName) {
		this.communityName = communityName;
	}

	public String getMerchantSettingId() {
		return merchantSettingId;
	}

	public void setMerchantSettingId(String merchantSettingId) {
		this.merchantSettingId = merchantSettingId;
	}

	public boolean isMchModel() {
		return mchModel;
	}

	public void setMchModel(boolean mchModel) {
		this.mchModel = mchModel;
	}

	public String getMchId() {
		return mchId;
	}

	public void setMchId(String mchId) {
		this.mchId = mchId;
	}

	public String getMchName() {
		return mchName;
	}

	public void setMchName(String mchName) {
		this.mchName = mchName;
	}

	public String getMchSecret() {
		return mchSecret;
	}

	public void setMchSecret(String mchSecret) {
		this.mchSecret = mchSecret;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getMchFileId() {
		return mchFileId;
	}

	public void setMchFileId(String mchFileId) {
		this.mchFileId = mchFileId;
	}

	public String getCertPemFileId() {
		return certPemFileId;
	}

	public void setCertPemFileId(String certPemFileId) {
		this.certPemFileId = certPemFileId;
	}

	public String getKeyPemFileId() {
		return keyPemFileId;
	}

	public void setKeyPemFileId(String keyPemFileId) {
		this.keyPemFileId = keyPemFileId;
	}

	public boolean isAuditStatus() {
		return auditStatus;
	}

	public void setAuditStatus(boolean auditStatus) {
		this.auditStatus = auditStatus;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

	public List<String> getCommunityIds() {
		return communityIds;
	}

	public void setCommunityIds(List<String> communityIds) {
		this.communityIds = communityIds;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
}
